package com.platform.service.impl;

import com.alibaba.fastjson.JSONObject;
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
import com.platform.dao.UserReferrerPeriodDao;
import com.platform.dao.UserTransactionRecordDao;
import com.platform.entity.*;
import com.platform.service.*;
import com.platform.utils.DateUtils;
import com.platform.utils.R;
import com.platform.utils.RRException;
import com.platform.utils.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.math.BigDecimal;
import java.util.Arrays;
import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;

/**
 * Service实现类
 *
 * @author lipengjun
 * @email 939961241@qq.com
 * @date 2017-08-16 15:02:28
 */
@Service("userTransactionRecordService")
public class UserTransactionRecordServiceImpl implements UserTransactionRecordService {
    @Autowired
    private UserTransactionRecordDao userTransactionRecordDao;
    

    @Override
    public UserTransactionRecordEntity queryObject(Integer id) {
        return userTransactionRecordDao.queryObject(id);
    }

    @Override
    public List<UserTransactionRecordEntity> queryList(Map<String, Object> map) {
        return userTransactionRecordDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return userTransactionRecordDao.queryTotal(map);
    }

    @Override
    @Transactional
    public int save(UserTransactionRecordEntity userTransactionRecordEntity) {
        return userTransactionRecordDao.save(userTransactionRecordEntity);
    }

    @Override
    public int update(UserTransactionRecordEntity userTransactionRecordEntity) {
        return userTransactionRecordDao.update(userTransactionRecordEntity);
    }

    @Override
    public int delete(Integer id) {
        return userTransactionRecordDao.delete(id);
    }

    @Override
    public int deleteBatch(Integer[] ids) {
        return userTransactionRecordDao.deleteBatch(ids);
    }



}
